package cn.imokay.sof;

/**
 * -Xss128k
 */
public class SOFTest {
    private int stackLength = 1;
    public void stackLeak(){
        stackLength++;
        stackLeak();
    }

    public static void main(String[] args) {
        SOFTest sofTest = new SOFTest();
        try {
            sofTest.stackLeak();
        } catch (Throwable e) {
            System.out.println("stackLength:"+sofTest.stackLength);
            throw new RuntimeException(e);
        }
    }
}
